package org.example.cet.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.cet.demos.domain.po.ScoreBank;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hq
 * @since 2024-12-18
 */
@Mapper
public interface ScoreBankMapper extends BaseMapper<ScoreBank> {
    List<ScoreBank> getPage(@Param("bankId")String bankId);

    void updateTotalScore(@Param("bankId") String bankId, @Param("score") double score);

    void insert(@Param("bankId") String bankId, @Param("stuId") String stuId, @Param("type") int type, @Param("score") double score);
}
